/*
 * method_poiter.cpp
 *
 *  Created on: Oct 17, 2008
 *      Author: tandaica0612
 */
#include <iostream>

class Adder
{
    int x;
public:
    Adder(int in) : x(in) { }
    int addx(int y) { return x + y; }
};
/*
int main()
{
    int (Adder::*func)(int) = &Adder::addx;
    Adder foo = Adder(3);
    std::cout << (foo.*func)(5) << std::endl; // prints "8"
    return 0;
}**/
/*
8
 **/
